package vaccine.appointment.system.inventory.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 库存实体类
 */
@Data
@TableName("inventory")
public class Inventory {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 库存数量
     */
    @TableField("count")
    private Integer count;

    /**
     * 关联的疫苗id
     */
    @TableField("vaccine_id")
    private Integer vaccineId;

    /**
     * 关联的接种点id
     */
    @TableField("vaccination_site_id")
    private Integer vaccinationSiteId;

    /**
     * 逻辑删除标识符
     * 0--没有删除
     * 1--已删除
     */
    @TableLogic
    @TableField("del_flg")
    private Integer delFlg;
}
